/**
 * 
 */
package com.iss.card.model;

import java.io.Serializable;

import com.iss.card.webservice.BaseModel;

/**
 * @author dtdh
 * 
 */
public class StoreAddressInfo extends BaseModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1044996797497483205L;
	private static final String SAKEY_STORE_ID = "storeid";
	private static final String SAKEY_STORE_ADDRESS = "storeAddress";
	private static final String SAKEY_STORE_NAME = "storeName";
	private static final String SAKEY_STORE_LATITUDE = "storeLatitude";
	private static final String SAKEY_STORE_LONGITUDE = "storeLongitude";

	private String mStoreId;
	private String mStoreAddress;
	private String mStoreName;
	private double mStoreLatitude;
	private double mStoreLongitude;

	/**
	 * @return the mStoreId
	 */
	public synchronized final String getStoreId() {
		return mStoreId;
	}

	/**
	 * @param storeId
	 *            the mStoreId to set
	 */
	public synchronized final void setStoreId(String storeId) {
		this.mStoreId = storeId;
	}

	/**
	 * @return the mStoreAddress
	 */
	public synchronized final String getStoreAddress() {
		return mStoreAddress;
	}

	/**
	 * @param storeAddress
	 *            the mStoreAddress to set
	 */
	public synchronized final void setStoreAddress(String storeAddress) {
		this.mStoreAddress = storeAddress;
	}

	/**
	 * @return the mStoreName
	 */
	public synchronized final String getStoreName() {
		return mStoreName;
	}

	/**
	 * @param storeName
	 *            the mStoreName to set
	 */
	public synchronized final void setStoreName(String storeName) {
		this.mStoreName = storeName;
	}

	/**
	 * @return the mStoreLatitude
	 */
	public synchronized final double getStoreLatitude() {
		return mStoreLatitude;
	}

	/**
	 * @param storeLatitude
	 *            the mStoreLatitude to set
	 */
	public synchronized final void setStoreLatitude(double storeLatitude) {
		this.mStoreLatitude = storeLatitude;
	}

	/**
	 * @return the mStoreLongitude
	 */
	public synchronized final double getStoreLongitude() {
		return mStoreLongitude;
	}

	/**
	 * @param storeLongitude
	 *            the mStoreLongitude to set
	 */
	public synchronized final void setStoreLongitude(double storeLongitude) {
		this.mStoreLongitude = storeLongitude;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.iss.card.webservice.BaseModel#addValues(java.lang.String,
	 * java.lang.String, com.iss.card.webservice.BaseModel)
	 */
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
		if (null == tempString) {
			return;
		}
		if (tempString.equals(SAKEY_STORE_ID)) {
			this.mStoreId = valueString;
		} else if (tempString.equals(SAKEY_STORE_ADDRESS)) {
			this.mStoreAddress = valueString;
		} else if (tempString.equals(SAKEY_STORE_NAME)) {
			this.mStoreName = valueString;
		} else if (tempString.equals(SAKEY_STORE_LATITUDE)) {
			this.mStoreLatitude = Double.valueOf(valueString);
		} else if (tempString.equals(SAKEY_STORE_LONGITUDE)) {
			this.mStoreLongitude = Double.valueOf(valueString);
		}
		baseMode = this;
	}

}
